package com.nengchuan.kbms.dfs.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nengchuan.kbms.dfs.annotation.Relation;
import com.nengchuan.model.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 供应商 DTO
 * </p>
 *
 * @author abe
 * @since 2020-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "UserMessagePageDTO 对象", description = "供应商 DTO")
public class UserMessagePageDTO extends PageDTO {

    @ApiModelProperty(value = "标题名称", position = 10)
    @Relation(Relation.Bind.LIKE)
    private String title;

    @ApiModelProperty(value = "消息类型编码", position = 20)
    @Relation
    private String messageTypeCode;

    @ApiModelProperty(value = "接收时间戳（开始）", position = 30)
    @Relation(value = Relation.Bind.GE, field = "create_time")
    private Long createTime;

    @ApiModelProperty(value = "接收时间戳（结束）", position = 40)
    @Relation(value = Relation.Bind.LE, field = "create_time")
    private Long endTime;

    @ApiModelProperty(value = "接收人", hidden = true)
    @JsonIgnore
    @Relation
    private Long userId;

}
